package common.com.androidbase.datarequest;

public final class IDTools {

    /**
     * @param id
     * @return
     */
    public static boolean isNotEmpty(long id) {
        if (id > 0) {
            return true;
        }

        return false;
    }

    public static boolean isEmpty(long id) {
        return !isNotEmpty(id);
    }

    public static boolean isNotEmpty(Long id) {
        if (id != null && id > 0) {
            return true;
        }

        return false;
    }

    public static boolean isEmpty(Long id) {
        return !isNotEmpty(id);
    }
}
